package com.easy.frame.servers.sys.process;

import com.easy.frame.common.process.core.factory.AbstractProcessFactory;
import com.easy.frame.common.process.core.service.ProcessService;
import com.easy.frame.common.process.entity.define.ProcessDefine;
import com.easy.frame.common.process.entity.excute.ProcessExecute;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * 流程工厂
 *
 * @author zzf
 * @date 2021/3/26 14:14
 */
public class EasyFrameProcessFactory extends AbstractProcessFactory {


    public EasyFrameProcessFactory(Collection<ProcessDefine<?>> processDefines, ProcessService processService) {
        super(processDefines, processService);
    }

    @Override
    public boolean sendMsg2Users(List<Integer> userIds, ProcessExecute execute) {

        return false;
    }

    public void startProjectProcess(Serializable projectId) {
        startProcess(ProcessDefineEnum.SYS_PROJECT.getCode(), projectId);
    }
}
